package com.cbw.firegame.order.feign;

import com.cbw.common.utils.R;
import com.cbw.common.vo.GameEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("firegame-product")
public interface ProductServiceFeign {

    @GetMapping("product/category/getAllCategory")
    public R getAllCategory();
    @RequestMapping("product/game/info/{gameId}")
    public R gameInfo(@PathVariable("gameId") Long gameId);

    @RequestMapping("product/category/info/{catId}")
    public R catInfo(@PathVariable("catId") Long catId);

    @RequestMapping("product/game/orderDesc/{id}")
    public GameEntity getGame(@PathVariable("id") Long id);


    @RequestMapping("product/gameinfo/getGameDetailId/{gameId}")
    public R gameDetailinfo(@PathVariable("gameId") Long gameId);


    @RequestMapping("product/game/update/{gameId}")
    public R update(@PathVariable("gameId")Long gameId,@RequestBody GameEntity game);











}
